package com.sdx.console.tdcard.web.query;

import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam;
import java.util.Date;
import com.sdx.common.utils.Utils;
/**
 *龙卡查询
 */
public class TDCardQuery extends PageParam {
    @Query(name = "id", display = true)        
    private Long id;
    @Query(name = "provinceId", display = true)        
    private Integer provinceId;
    @Query(name = "是否激活", display = true)        
    private Integer isActive;
    @Query(name = "激活时间", display = true)        
	private String activeDate;
	private Date activeDateStart;
	private Date activeDateEnd;
    @Query(name = "制卡时间", display = true)        
	private String createDate;
	private Date createDateStart;
	private Date createDateEnd;
    @Query(name = "龙卡失效时间", display = true)        
	private String inactiveDate;
	private Date inactiveDateStart;
	private Date inactiveDateEnd;
    @Query(name = "是否出库：1出库、0未出库", display = true)        
    private Integer status;
    public Long getId(){
        return  id;
    }
    public void setId(Long id ){
        this.id = id;
    }
    public Integer getProvinceId(){
        return  provinceId;
    }
    public void setProvinceId(Integer provinceId ){
        this.provinceId = provinceId;
    }
    public Integer getIsActive(){
        return  isActive;
    }
    public void setIsActive(Integer isActive ){
        this.isActive = isActive;
    }
	public String getActiveDate(){
		return  activeDate;
	}
	public void setActiveDate(String activeDate ){
		this.activeDate = activeDate;
		Date[] timePair = Utils.parseQueryTime(activeDate);
		if (timePair!=null && timePair[0]!=null) {
			this.activeDateStart = timePair[0];
		}
		if (timePair!=null && timePair.length==2 && timePair[1]!=null) {
		this.activeDateEnd = timePair[1];
		}

	}
	public Date getActiveDateStart(){
		return  activeDateStart;
	}
	public void setActiveDateStart(Date activeDateStart ){
		this.activeDateStart = activeDateStart;
	}
	public Date getActiveDateEnd(){
		return  activeDateEnd;
	}
	public void setActiveDateEnd(Date activeDateEnd ){
		this.activeDateEnd = activeDateEnd;
	}
	public String getCreateDate(){
		return  createDate;
	}
	public void setCreateDate(String createDate ){
		this.createDate = createDate;
		Date[] timePair = Utils.parseQueryTime(createDate);
		if (timePair!=null && timePair[0]!=null) {
			this.createDateStart = timePair[0];
		}
		if (timePair!=null && timePair.length==2 && timePair[1]!=null) {
		this.createDateEnd = timePair[1];
		}

	}
	public Date getCreateDateStart(){
		return  createDateStart;
	}
	public void setCreateDateStart(Date createDateStart ){
		this.createDateStart = createDateStart;
	}
	public Date getCreateDateEnd(){
		return  createDateEnd;
	}
	public void setCreateDateEnd(Date createDateEnd ){
		this.createDateEnd = createDateEnd;
	}
	public String getInactiveDate(){
		return  inactiveDate;
	}
	public void setInactiveDate(String inactiveDate ){
		this.inactiveDate = inactiveDate;
		Date[] timePair = Utils.parseQueryTime(inactiveDate);
		if (timePair!=null && timePair[0]!=null) {
			this.inactiveDateStart = timePair[0];
		}
		if (timePair!=null && timePair.length==2 && timePair[1]!=null) {
		this.inactiveDateEnd = timePair[1];
		}

	}
	public Date getInactiveDateStart(){
		return  inactiveDateStart;
	}
	public void setInactiveDateStart(Date inactiveDateStart ){
		this.inactiveDateStart = inactiveDateStart;
	}
	public Date getInactiveDateEnd(){
		return  inactiveDateEnd;
	}
	public void setInactiveDateEnd(Date inactiveDateEnd ){
		this.inactiveDateEnd = inactiveDateEnd;
	}
    public Integer getStatus(){
        return  status;
    }
    public void setStatus(Integer status ){
        this.status = status;
    }
 
}
